package com.lancoo.ccas52.mapper;

import com.lancoo.ccas52.entity.RuleTeacherTime;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lancoo.ccas52.config.MybatisRedisCache;
import com.lancoo.ccas52.pojo.dto.ArrangeTeacherRuleDto;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 教师规则 Mapper 接口
 * </p>
 *
 * @author quin.song
 * @since 2023-03-27
 */
@CacheNamespace(implementation = MybatisRedisCache.class, eviction = MybatisRedisCache.class)
public interface RuleTeacherTimeMapper extends BaseMapper<RuleTeacherTime> {

    /**
     * 获取教师禁排部分字段
     * @param schoolId
     * @param term
     * @return
     */
    List<ArrangeTeacherRuleDto> getArrangeTeacherRuleByTaskId(@Param("schoolId") String schoolId,@Param("term") String term,@Param("collegeId") String collegeId);
}